package org.neuedu.chapter08_0625.demo01;

public class ExceptionDemo01 {
    public static void main(String[] args) {
        // 异常
        System.out.println(5/0); // java.lang.ArithmeticException
        String str = null;
        System.out.println(str.length());// java.lang.NullPointerException
        int[] arr = {1};
        System.out.println(arr[1]);// java.lang.ArrayIndexOutOfBoundsException
    }
}
